<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="zh">
 <head>
  <meta content="width=device-width, initial-scale=1.0" name="viewport"/>
  <meta content="2018-10-23T06:18:10.521000000" name="created"/>
  <meta content="2023-12-12T09:31:23" name="changed" translator="gocpicnic"/>
  <meta content="text/html; charset=utf-8" http-equiv="content-type"/>
  <meta content="zh" http-equiv="Content-Language"/>
  <title>
   LED
  </title>
  <link href="../../style.css" rel="stylesheet" type="text/css"/>
 </head>
 <body>
  <div class="maindiv">
   <h1>
    <img align="middle" alt="#########" class="iconlibs" height="32" src="../../../../icons/6464/led.png" width="32"/>
    <em>
     LED
    </em>
   </h1>
   <table>
    <tbody>
     <tr>
      <td>
       <!-- <strong>Library:</strong> -->
       <strong>
        库:
       </strong>
      </td>
      <td>
       <!-- <a href="index.html">Input/Output</a> -->
       <a href="index.html">
        输入/输出
       </a>
      </td>
     </tr>
     <tr>
      <td>
       <!-- <strong>Introduced:</strong> -->
       <strong>
        介绍:
       </strong>
      </td>
      <td>
       2.1.3
      </td>
     </tr>
     <tr>
      <td valign="top">
       <!-- <strong>Appearance:</strong> -->
       <strong>
        外观符号:
       </strong>
      </td>
      <td valign="top">
       <img alt="#########" class="appearancelibs" height="64" src="../../../../img-libs/led.png" width="64"/>
       <img alt="#########" class="appearancelibs" height="64" src="../../../../img-libs/ledoff.png" width="64"/>
      </td>
     </tr>
    </tbody>
   </table>
   <h2>
    <!-- Behavior -->
    行为
   </h2>
   <p>
    <!-- Displays the value of its input by coloring the LED (as specified by its Color attribute) or not depending on whether the input is 1 or 0. -->
    根据输入是 1 还是 0，通过对 LED 进行着色（由其 Color 属性指定）来显示其输入的值。
   </p>
   <p>
    <!-- (The LED component is basically redundant with an output pin, except for a somewhat different appearance. Some users, though, thought it would be nice to include.) -->
    （除了外观略有不同外，LED 组件基本上与输出引脚是多余的。不过，一些用户认为包含该组件会更好。）
   </p>
   <h2>
    <!-- Pins -->
    引脚
   </h2>
   <p>
    <!-- A LED has only one pin, a 1-bit input which is used to determine whether to display the LED colored (when the input is 1) or darkened (when the input is anything else). -->
    LED 只有一个引脚，即 1 位输入，用于确定 LED 是否显示为彩色（当输入为 1 时）或变暗（当输入为其他值时）。
   </p>
   <h2>
    <!-- Attributes -->
    属性
   </h2>
   <p>
    <!-- When the component is selected or being added, the arrow keys alter its <q>Facing</q> attribute. -->
    当选择或添加组件时，箭头键会更改其
    <q>
     Facing
    </q>
    属性。
   </p>
   <dl>
    <dt>
     <!-- Facing -->
     方向
    </dt>
    <dd>
     <!-- The location of the input pin relative to the component. -->
     输入引脚相对于组件的位置。
    </dd>
    <dt>
     <!-- Color -->
     颜色
    </dt>
    <dd>
     <!-- The color to display when the input value is 1. -->
     输入值为 1 时显示的颜色。
    </dd>
    <dt>
     <!-- Active On High? -->
     活跃度高？
    </dt>
    <dd>
     <!-- If <q>yes</q>, then the LED is colored when the input is 1. If <q>no</q>, it is colored when the input is 0. -->
     如果
     <q>
      是
     </q>
     ，则当输入为1时LED呈彩色。如果
     <q>
      否
     </q>
     ，则当输入为0时LED呈彩色。
    </dd>
    <dt>
     <!-- Label -->
     标签
    </dt>
    <dd>
     <!-- The text within the label associated with the component. -->
     与组件关联的标签内的文本。
    </dd>
    <dt>
     <!-- Label Location -->
     标签位置
    </dt>
    <dd>
     <!-- The location of the label relative to the component. -->
     标签相对于组件的位置。
    </dd>
    <dt>
     <!-- Label Font -->
     标签字体
    </dt>
    <dd>
     <!-- The font with which to render the label. -->
     用于呈现标签的字体。
    </dd>
    <dt>
     <!-- Label Color -->
     标签颜色
    </dt>
    <dd>
     <!-- The color with which to draw the label. -->
     绘制标签的颜色。
    </dd>
   </dl>
   <h2>
    <!-- Poke Tool Behavior -->
    Poke 工具行为
   </h2>
   <p>
    <!-- None. -->
    无
   </p>
   <h2>
    <!-- Text Tool Behavior -->
    文本工具行为
   </h2>
   <p>
    <!-- Allows the label associated with the component to be edited. -->
    允许编辑与组件关联的标签。
   </p>
   <p>
    <!-- <a href="../index.html">Back to <em>Library Reference</em></a> -->
    <b>
     返回
    </b>
    <a href="../index.html">
     电路元件库参考手册
    </a>
   </p>
  </div>
 </body>
</html>
